package cn.edu.sgu.www.mhxysy.service.impl;

import cn.edu.sgu.www.mhxysy.entity.Phyle;
import cn.edu.sgu.www.mhxysy.mapper.PhyleMapper;
import cn.edu.sgu.www.mhxysy.service.PhyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author heyunlin
 * @version 1.0
 */
@Service
public class PhyleServiceImpl implements PhyleService {

    private final PhyleMapper phyleMapper;

    @Autowired
    public PhyleServiceImpl(PhyleMapper phyleMapper) {
        this.phyleMapper = phyleMapper;
    }

    @Override
    public List<Phyle> selectAll() {
        return phyleMapper.selectList(null);
    }

    @Override
    public Phyle selectById(Integer id) {
        return phyleMapper.selectById(id);
    }

}